import 'package:flutter/cupertino.dart';

extension WidgetClickExtension on Container {
  clickAction({Function? tapAction}) {
    return GestureDetector(
      onTap: () {
        if (tapAction != null) {
          tapAction();
        }
      },
      child: this,
    );
  }
}
